package org.aristotle.auth.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class Oauth2TokenDTO {
    /**
     * 访问令牌
     */
    @JSONField(name = "access_token")
    private String accessToken;
    /**
     * 刷新令牌
     */
    @JSONField(name = "refresh_token")
    private String refreshToken;
    /**
     * 访问令牌头前缀
     */
    @JSONField(name = "token_type")
    private String tokenType;
    /**
     * 有效时间（秒）
     */
    @JSONField(name = "expires_in")
    private int expiresIn;

    @JSONField(name = "scope")
    private String scope;

    @JSONField(name = "user_id")
    private String userId;

    @JSONField(name = "jti")
    private String jti;

}
